package com.shire.shire_interface.service.friend;

import com.shire.shire_interface.model.friend.WxFriend;
import com.shire.shire_interface.model.friend.WxFriendExample;
import com.shire.shire_interface.model.user.WxAccount;

import java.util.List;
import java.util.Map;

/**
 * 作者:  sll
 * 时间:  2019/7/25 14:28
 */
public interface WxFriendService {
    List<WxFriend> getAllFriends(WxFriendExample wxFriend);

    WxFriend getFriendByWxId(Integer csId, String wxAccount, String friendWxid);
    WxFriend getFrientById(Integer friendId);

    void syncFriendsIncrement(List<Map<String, Object>> reqList, WxAccount account);

    Long getFriendCountByCsIdAndAccount(WxFriendExample friendExample);
    void syncFriends(String type, List<Map<String, Object>> reqList, WxAccount account);

    List<WxFriend> selectByExample(WxFriendExample example);

    Integer updateByPrimaryKeySelective(WxFriend wxFriend);

    Integer updateByExampleSelective(WxFriend friend, WxFriendExample friendExample);
}
